package cn.webrx;

import java.util.ArrayList;
import java.util.List;

public class List3 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>(List.of(1,1,1,2,2,3,3,3,3,5));
        int a = list.size();
        list.removeAll(List.of(3));
        System.out.println(a - list.size());

        int n = 0;
        for(int i=0;i<list.size();i++){
            if(list.get(i) == 3){
                ++n;
            }
        }
        System.out.println(n);





    }
}
